package com.hbut.friend.controller.exam;

import com.hbut.common.core.Controller.BaseController;
import com.hbut.common.core.domain.TableDataInfo;
import com.hbut.friend.domain.exam.dto.ExamQueryDTO;
import com.hbut.friend.service.exam.IExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/exam")
public class ExamController extends BaseController {
    @Autowired
    IExamService IExamService;



    @GetMapping("/semiLogin/list")
    public TableDataInfo list(ExamQueryDTO questionQueryDTO) {
        return getTableDataInfo(IExamService.list(questionQueryDTO));
    }

    @GetMapping("/semiLogin/redis/list")
    public TableDataInfo redisList(ExamQueryDTO questionQueryDTO) {
         return IExamService.redisList(questionQueryDTO);
    }

}
